package edu.ynu.se.xiecheng.achitectureclass.common.entity.abstrac;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

@Getter
@Setter
@MappedSuperclass
public abstract class SensorData extends LogicEntity {

    @Column(unique = true)
    private String boxId; // 设备箱 ID
    @Column
    private String shebeiId; // 设备箱 ID

    @Column
    private String dataType; // 数据类型

    @Column
    private String name; // 数据名称

    @Column
    private Double value; // 数据值

    @Column
    private Integer status; // 设备状态

    @Column
    private Integer connState; // 连接状态

    @Column
    private Date connStateTimestamp; // 连接状态更新时间

    @Column
    private Date timestamp; // 数据采集时间
}
